//
//  LibBlockSingleTon.m
//  万州V7宝iOS客户端[ObjC]
//
//  Created by DimChum_Haul on 16/3/21.
//  Copyright © 2016年 沙罗双树831. All rights reserved.
//

#import "ObjCBlock_Am_SwiftClosure.h"

id(^pistonBlock)(NSArray*) = ^(NSArray* array){
    u_int32_t idx = arc4random_uniform((unsigned int)array.count);
    id rs = array[idx];
    return rs;
};
long (^arc4randomByRange)(long,long) = ^long(long from,long to){
    long offset = from > to ? (from - to) : (to - from);
    return arc4random_uniform((int)offset) + from;
};
